package com.kabuda.blog.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kabuda.blog.dao.dos.Archives;
import com.kabuda.blog.dao.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author kabuda
 * @create 2023-01-16 14:24
 */
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    List<Archives> listArchives();

    IPage<Article> listArticles(Page<Article> page, @Param("categoryId") Long categoryId, @Param("tagId") Long tagId, @Param("year") String year, @Param("month") String month);
}
